package cate.common.table.activity.treasure.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteField;

public class TreasureOutputRow extends ERow {
    @NoteField("暴击道具")
    public String reward;

    @NoteField("奖池分组")
    public int groupId;

    @NoteField("概率")
    public double probability;

    @NoteField("倍率")
    public double rate;

    @Override
    public void parse(XSSFRowWrap xrw) {
        this.id = xrw.getInteger("ID");
        this.reward = xrw.getString("暴击道具ID","");
        this.groupId = xrw.getInteger("奖池分组",0);
        this.probability = xrw.getDouble("概率",0d);
        this.rate = xrw.getDouble("倍率",0d);
    }
}
